Page({
  data: {
    markers: [],
    currentCompany:{}
  },
  onLoad: function (options) {
    getApp().initLanguage(this)
    let currentCompany = wx.getStorageSync('currentCompany')
    wx.setNavigationBarTitle({
      title: currentCompany.name,
    })
    this.setData({
      currentCompany,
      markers:[{
        id:parseInt(currentCompany.id),
        name:currentCompany.name,
        latitude: currentCompany.latitude,
        longitude: currentCompany.longitude,
        height: 30,
        width: 20,
      }]
    })
  },
  // 
  phoneCall: function () {
    var phoneNumber = this.data.phone
    wx.makePhoneCall({
      phoneNumber,
    })
  },
  // 
  guideNow: function () {
    wx.openLocation({
      name: "公司总部",
      address: "安徽省合肥市蜀山区望江西路4899号",
      latitude: 31.829545,
      longitude: 117.152559,
    })
  },
})